package com.lg.distributed.idempotence.config;

import com.lg.distributed.idempotence.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author by Mr. Li 2020/12/10 18:07
 */
@Configuration
public class IWorkerConfig {
    @Bean
    public IdWorker getIdWorker() {
        return new IdWorker(1, 1, 1);
    }
}
